﻿using Grow.Module.Service;
using Grow.Module.Thread;

namespace Grow.WebAPI.CreateWebAPI
{
    /// <summary>
    /// API 构建器
    /// </summary>
    public interface IWebAPIBuilder
    {
        IWebAPIBuilder Map<TResponse>(MapTypeEnum mapType, string route, Func<IServiceContext, ICancellationTokenContext, TResponse> actionFunc, string summary = "");
        IWebAPIBuilder Map<TRequest, TResponse>(MapTypeEnum mapType, string route, Func<TRequest, IServiceContext, ICancellationTokenContext, TResponse> actionFunc, string summary = "");
    }
}
